package com.kangyi.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kangyi.entity.PublicActivityImg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Blank
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "发布活动传回数据格式")
public class AddPublicActivityDTO implements Serializable {

    @ApiModelProperty("发布人id")
    private Integer adminUserId;
    @ApiModelProperty("活动名称")
    private String activityName;
    @ApiModelProperty("活动图片")
    private List<PublicActivityImgDTO> publicActivityImgDTOList;
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
    @ApiModelProperty("活动报名截止时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate signupDeadline;
    @ApiModelProperty("活动地址")
    private String address;
    @ApiModelProperty("活动简介")
    private String description;
    @ApiModelProperty("活动内容")
    private String content;
    @ApiModelProperty("邀请人")
    private InviterInfoDTO inviterInfoDTO;

}
